from redis import StrictRedis,ConnectionPool
#连接redis
redis = StrictRedis(host="192.168.139.3",port=6379,db=0,password="Lzzy@2022")
# print(redis.get("name"))
# print(redis.exists('name')) #是否存在name这个键
print(redis.sadd("set3","vin1","vin2","vin3"))
print(redis.keys("*"))

print(redis.zadd("data",{"zhangsan": 3000, "lisi": 4000, "wangwu": 2500, "liu666": 10000}))